<template>
  <div>
    <h1>添加检测记录</h1>
    <el-form ref="form" :model="form" label-width="130px">
        <el-form-item label="检测时间">
            <el-col :span="6">
                    <el-date-picker v-model="date" type="date" placeholder="请选择日期"></el-date-picker>
            </el-col>
        </el-form-item>
        <el-form-item label="核酸检测结果">
            <el-radio-group v-model="form.hsSevere">
                <el-radio :label="0">阳性</el-radio>
                <el-radio :label="1">阴性</el-radio>
            </el-radio-group>
        </el-form-item>
        <el-form-item label="CT检测结果">
            <el-radio-group v-model="form.ctSevere">
                <el-radio :label="0">阳性</el-radio>
                <el-radio :label="1">阴性</el-radio>
            </el-radio-group>
        </el-form-item>
        <el-form-item>
            <el-button type="primary" @click="onSubmit">提交</el-button>
            <el-button>取消</el-button>
        </el-form-item>
    </el-form>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        form: {
            hsSevere:"1",
            ctSevere:"1",
        },
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>
